﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Qizx.Extensions {
    public static class XmlHelper {
        public static bool Split(string name, out string prefix, out string localName) {
            prefix = localName = null;
            if (string.IsNullOrEmpty(name)) return false;
            int index = name.IndexOf(":");
            if (index == -1) {
                prefix = string.Empty;
                localName = name;
            } else {
                prefix = name.Substring(0, index);
                localName = name.Substring(index + 1);
            }
            return true;
        }
    }
}
